disableSerialization;
if (local user1) then
{

_display = finddisplay 8000;
_txt = _display displayctrl 200;
_bt = _display displayctrl 10603;

		if(captive user1) then
		{
		  _code={
			user1 allowDamage true;
			};
			user1 setCaptive false;
			[_code] execvm "scripts\VTS_Functions\runcodeonallclients.sqf";
			titletext ["Your are not invisible for enemy !","plain down"];
				_txt CtrlSetText "Your are not invisible for enemy !";
				_txt CtrlSetTextColor [1,0,0,1];
				_bt CtrlSetTextColor [0.9,0.9,0.9,1];
			Ctrlshow [200,true];sleep 0.5; CtrlShow [200,false];sleep 0.5;Ctrlshow [200,true];
		}else{
		_code={
		  user1 setdamage 0;
			user1 allowDamage false;
		};
		user1 setCaptive true;
		[_code] execvm "scripts\VTS_Functions\runcodeonallclients.sqf";
			titletext ["Your are invisible for enemy !","plain down"];
				_txt CtrlSetText "Your are invisible for enemy !";
				_bt CtrlSetTextColor [1,0,0,1];
		};
};
